package com.frame.work.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.frame.work.entity.TblDevice;
import org.dom4j.DocumentException;

import java.util.Map;

/**
 * @author wjming
 */
public interface TblDeviceService extends IService<TblDevice> {
    /**
     * 修改设备信息
     *
     * @param deviceMap
     * @param gatewayMac
     */
    void updateDevice(Map<String, Object> deviceMap, String gatewayMac);

    void lianKongDeviceHandle(Map<String, Object> deviceMap, String gatewayMac);

    void updateDeviceScene(Map<String, Object> messageObj);

    boolean judgeState(String deviceMac, String state);

    /**
     * 通过设备mac查询设备信息
     *
     * @param deviceMac
     * @return
     */
    TblDevice selectDeviceByMac(String deviceMac);

    /**
     * 重置电量删除数据并添加一条
     *
     * @param deviceMac
     */
    void resetMeterLog(String deviceMac);
}
